#include "httpserver.hpp"
#include <string>
#include "log.hpp"

static void Usage(std::string proc)
{
    std::cout << "Usage:\n\t" << proc << " port" << std::endl;;
}
int main(int argc,char* argv[])
{
  if(argc!=2)
  {
    Usage(argv[0]);
    exit(4);
  }
  int port=atoi(argv[1]);
  httpserver* ser=new httpserver(port);
  ser->Isitserver();
  ser->loop();

  return 0;
}
